package org.jeecg.modules.minqing.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.List;

/**
 * @Description: 优惠政策
 * @Author: jeecg-boot
 * @Date: 2019-10-10
 * @Version: V1.0
 */
@Data
@TableName("MQ_FAVORABLE_POLICY")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "MQ_FAVORABLE_POLICY对象", description = "优惠政策")
public class FavorablePolicy {

    /**
     * 主键ID
     */
    @TableId(type = IdType.UUID)
    @ApiModelProperty(value = "主键ID")
    private java.lang.String id;
    /**
     * 标题
     */
    @Excel(name = "标题", width = 15)
    @ApiModelProperty(value = "标题")
    private java.lang.String title;
    /**
     * 内容
     */
    @Excel(name = "内容", width = 15)
    @ApiModelProperty(value = "内容")
    private java.lang.Object context;
    /**
     * 父ID
     */
    @Excel(name = "父ID", width = 15)
    @ApiModelProperty(value = "父ID")
    private java.lang.String parentId;

    /**
     * 阅读次数
     */
    @Excel(name = "阅读次数", width = 15)
    @ApiModelProperty(value = "阅读次数")
    private java.lang.String readTime;
    /**
     * 创建人
     */
    private java.lang.String createBy;
    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private java.util.Date createTime;
    /**
     * 修改人
     */
    private java.lang.String updateBy;
    /**
     * 修改时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private java.util.Date updateTime;

    @TableField(exist = false)
    private List<FavorablePolicy> childList;

    @TableField(exist = false)
    private java.lang.String parentName;
}
